Can JavaScript objects have methods